package com.icloud.article.boot.dto;

import com.icloud.common.core.constant.ValidateConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Getter
@Setter
@ApiModel(value="发送单聊消息", description="https://www.tencentcloud.com/zh/document/product/1047/34919")
public class SendSingleMessageDto implements Serializable {
    @ApiModelProperty(value = "消息接收方UserId", required = true)
    @NotEmpty(message= ValidateConstant.NOT_EMPTY)
    private String toAccount;
    @ApiModelProperty("消息类型")
    @NotEmpty(message= ValidateConstant.NOT_EMPTY)
    private String msgType;

    @ApiModelProperty("消息内容")
    @NotNull(message="消息内容对象, json格式, 必填")
    private Object msgContent;
}
